<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kra8\Snowflake\HasSnowflakePrimary;
class Role extends Model
{
    use HasSnowflakePrimary;
    public $incrementing = false;
    public function users(){
        return $this->hasMany('App\Models\User','role_code','code');
    }
}
